package zwh.mall.dao;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import zwh.mall.entity.Category;

import java.util.List;

/**
 * @author 97506
 */
public interface CategoryDao extends JpaRepository<Category, Integer> {
    List<Category> findByType(int type);

    Page<Category> findByType(int type, Pageable pageable);

    List<Category> findByParentId(int cid);


}
